﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.ComponentModel;

namespace HRProject.Code.DTO
{
    public class BLRecordTypeSetting
    {
        private Guid id;
        private string name;
        private string description;
        private DateTime updateDate;
        private Guid updateUserId;
        private int inputType;
        private long dataSignature;
        private BLRecordType type;

        public BLRecordType Type
        {
            get { return type; }
            set { type = value; }
        }

        public long DataSignature
        {
            get { return dataSignature; }
            set { dataSignature = value; }
        }

        public int InputType
        {
            get { return inputType; }
            set { inputType = value; }
        }

        public Guid UpdateUserId
        {
            get { return updateUserId; }
            set { updateUserId = value; }
        }

        public DateTime UpdateDate
        {
            get { return updateDate; }
            set { updateDate = value; }
        }


        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public Guid Id
        {
            get { return id; }
            set { id = value; }
        }

        private string inputValue;

        public string InputValue
        {
            get { return inputValue; }
            set { inputValue = value; }
        }

        public string InputValueForJSON
        {
            get
            {
                if (inputValue == null)
                {
                    return string.Empty;
                }
                return inputValue.Replace("\n", "<br/>");
            }
        }
    }
}
